package panda.server;

import java.rmi.Naming;
import panda.rmi.server.ServerDriver;
import panda.rmi.server.impl.PandaServerDriver;

public class StartPanda {
	public static void main(String args[]) throws Exception {
	    // configure and initialize the database
		Panda.init(args[0]);

	    // post the server entry in the rmi registry
		ServerDriver d = new PandaServerDriver();
		Naming.rebind("PandaDataBase", d);

		System.out.println("PandaDataBase server ready!!!");
    }
}
